package java101;

import java.util.*;

public class StateLetters {

	static int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u,
			v, w, x, y, z = 0;

	public static void main(String[] args) {

		int[] alpha = new int[26];

		String sb = "AlabamaAlaskaArizonaArkansasCaliforniaColoradoConnecticutDelawareFloridaGeorgia"
				+ "HawaiiIdahoIllinoisIndianaIowaKansasKentuckyLouisianaMaineMarylandMassachusettsMichigan"
				+ "MinnesotaMississippiMissouriMontanaNebraskaNevadaNewHampshireNewJerseyNewMexico"
				+ "NewYorkNorthCarolinaNorth DakotaOhioOklahomaOregonPennsylvaniaRhodeIsland"
				+ "SouthCarolinaSouthDakotaTennesseeTexasUtahVermontVirginiaWashington"
				+ "WestVirginiaWisconsinWyoming";

		for (int up = 0; up < sb.length(); up++) {
			char letter = sb.charAt(up);

			switch (letter) {
			case 'A':
			case 'a':
				a++;

				break;
			case 'B':
			case 'b':
				b++;

				break;
			case 'C':
			case 'c':
				c++;

				break;
			case 'D':
			case 'd':
				d++;

				break;
			case 'E':
			case 'e':
				e++;

				break;
			case 'F':
			case 'f':
				f++;

				break;
			case 'G':
			case 'g':
				g++;

				break;
			case 'H':
			case 'h':
				h++;

				break;
			case 'I':
			case 'i':
				i++;

				break;
			case 'J':
			case 'j':
				j++;

				break;
			case 'K':
			case 'k':
				k++;

				break;
			case 'L':
			case 'l':
				l++;

				break;
			case 'M':
			case 'm':
				m++;

				break;
			case 'N':
			case 'n':
				n++;

				break;
			case 'O':
			case 'o':
				o++;

				break;
			case 'P':
			case 'p':
				p++;

				break;
			case 'Q':
			case 'q':
				q++;

				break;
			case 'R':
			case 'r':
				r++;

				break;
			case 'S':
			case 's':
				s++;

				break;
			case 'T':
			case 't':
				t++;

				break;
			case 'U':
			case 'u':
				u++;

				break;
			case 'V':
			case 'v':
				v++;

				break;
			case 'W':
			case 'w':
				w++;

				break;
			case 'X':
			case 'x':
				x++;

				break;
			case 'Y':
			case 'y':
				y++;

				break;
			case 'Z':
			case 'z':
				z++;

				break;

			}

		}
		alpha[0] = a;
		alpha[1] = b;
		alpha[2] = c;
		alpha[3] = d;
		alpha[4] = e;
		alpha[5] = f;
		alpha[6] = g;
		alpha[7] = h;
		alpha[8] = i;
		alpha[9] = j;
		alpha[10] = k;
		alpha[11] = l;
		alpha[12] = m;
		alpha[13] = n;
		alpha[14] = o;
		alpha[15] = p;
		alpha[16] = q;
		alpha[17] = r;
		alpha[18] = s;
		alpha[19] = t;
		alpha[20] = u;
		alpha[21] = v;
		alpha[22] = w;
		alpha[23] = x;
		alpha[24] = y;
		alpha[25] = z;

		System.out.println(alpha);

	}

}
